-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【Hackathon 6th No.25】为 paddle.histogram/paddle.nn.functional.threshold 进行功能对齐与功能增强 #63044
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 升级API需要注意平滑过度,兼容升级,确保不影响之前的代码运行
- 将两个修改拆分开,git commit保证一定的原子性
@@ -1745,7 +1745,7 @@ | |||
|
|||
- op : histogram | |||
inputs : | |||
input : X | |||
{input: X, weight: Weight} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
拆成两个PR:一个修改threshold,一个修改histogram
@@ -1336,8 +1336,9 @@ | |||
backward : heaviside_grad | |||
|
|||
- op : histogram | |||
args : (Tensor input, int64_t bins = 100, int min = 0, int max = 0) | |||
args : (Tensor input, Tensor weight, bool density = false, int64_t bins = 100, int min = 0, int max = 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个参数为何要插到最前面去?非常的不兼容,升级API原则是尽可能不要影响以前的功能
@@ -1745,7 +1745,7 @@ | |||
|
|||
- op : histogram | |||
inputs : | |||
input : X | |||
{input: X, weight: Weight} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weight应该是一个必选参数吗?
@AndPuQing 另外,除了Approval和Static-check之外的CI都需要通过 |
Sorry to inform you that 33ba331's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
@AndPuQing |
PR types
New features
PR changes
APIs
Description